<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="stylesheet" href="../static/semantis-ui/semantic.min.css">
    <script type="text/javascript" src="../static/semantis-ui/jquery-3.6.0.js"></script>
    <script src="../static/semantis-ui/semantic.min.js"></script>
    <link rel="stylesheet" href="../static/css/me.css">
    <title>归档</title>
</head>
<body>
<!--导航-->
<!--segment反转 inverted平铺 导航栏-->
<nav class="ui segment inverted attached segment me-padded-tb-mini bg" th:replace="_fragments :: menu(4)">
    <!--放在一个container中-->
    <div class="ui container ">
        <!--里面的菜单   stackable适应手机-->
        <div class="ui inverted stackable menu bg">
            <h2 class="ui teal header item ">HJ&nbsp&nbspblog</h2>
            <a href="#" class="m-item item m-mobile-hide"><i class="m-margin-tb-menu icon home"></i>首页</a>
            <a href="#" class="m-item item m-mobile-hide"><i
                    class="m-margin-tb-menu folder open outline icon"></i>分类</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="m-margin-tb-menu edit outline icon"></i>标签</a>
            <a href="#" class="m-item item m-mobile-hide"><i
                    class="active m-margin-tb-menu edit outline icon"></i>归档</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="m-margin-tb-menu meh outline icon"></i>关于我</a>
            <div class="right m-item item m-mobile-hide">
                <!--transparent透明-->
                <div class="ui icon inverted transparent input">
                    <input type="text" placeholder="Search....">
                    <i class="search icon link"></i>
                </div>
            </div>

        </div>
    </div>
    <!--三条杠 更多按钮-->
    <a href="#" class="ui icon button menu toggle m-right-top bg white-font m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!--中间-->
<div class="m-padded-d-mass">
    <div class="m-container-small m-padded-tb-big">
        <div class="ui container">
            <!--header -->
            <!--头表 attached附加 会把挨着的segment连起来-->
            <div class="ui top attached segment">
                <!--有两列 被设置   middle aligned垂直居中 -->
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <h3 class="ui teal header">归档</h3>
                    </div>
                    <div class="right aligned column">
                        共 <h3 class="ui orange header m-inline-block" th:text="${blogCount}">14</h3>篇
                    </div>
                </div>
            </div>
<!--<th:block>  不会破坏原有页面 循环-->
<th:block th:each="item : ${archiveMap}">
            <h2 class="ui center aligned header red" th:text="${item.key}" >2020</h2>
            <div class="ui fluid vertical menu">
                <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="item" th:each="blog : ${item.value}">
                    <span>
                        <i class="mini teal circle icon"></i><span th:text="${blog.title}">关于刻意练习的清单</span>
                    </span>
                    <div class="ui orange basic left pointing label m-padd-mini" th:text="${blog.flag}">原创</div>
                </a>
                <!--/*-->
                <a href="#" ”target="_blank" class="item">
                    <span>
                        <i class="mini teal circle icon"></i>关于刻意练习的清单
                    </span>
                    <div class="ui orange basic left pointing label m-padd-mini">原创</div>
                </a>
                <a href="#" ”target="_blank" class="item">
                    <span>
                        <i class="mini teal circle icon"></i>关于刻意练习的清单
                    </span>
                    <div class="ui orange basic left pointing label m-padd-mini">原创</div>
                </a>
                <a href="#" ”target="_blank" class="item">
                    <span>
                        <i class="mini teal circle icon"></i>关于刻意练习的清单
                    </span>
                    <div class="ui orange basic left pointing label m-padd-mini">原创</div>
                </a>
                <!--*/-->
            </div>
</th:block>
<!--/*-->
            <h2 class="ui center aligned header red">2019</h2>
            <div class="ui fluid vertical menu">
                <a href="#" ”target="_blank" class="item">
                    <span>
                        <i class="mini teal circle icon"></i>关于刻意练习的清单
                    </span>
                    <div class="ui orange basic left pointing label m-padd-mini">原创</div>
                </a>
                <a href="#" ”target="_blank" class="item">
                    <span>
                        <i class="mini teal circle icon"></i>关于刻意练习的清单
                    </span>
                    <div class="ui orange basic left pointing label m-padd-mini">原创</div>
                </a>
                <a href="#" ”target="_blank" class="item">
                    <span>
                        <i class="mini teal circle icon"></i>关于刻意练习的清单
                    </span>
                    <div class="ui orange basic left pointing label m-padd-mini">原创</div>
                </a>
                <a href="#" ”target="_blank" class="item">
                    <span>
                        <i class="mini teal circle icon"></i>关于刻意练习的清单
                    </span>
                    <div class="ui orange basic left pointing label m-padd-mini">原创</div>
                </a>
            </div>
<!--*/-->

        </div>
    </div>


    <br/>
</div>

<!--底部      m-padded-d-mass间隔-->
<footer class="ui segment inverted vertical segment m-padded-d-mass bg" th:replace="_fragments :: footer">
    <!--container容器 center aligned居中-->
    <div class="ui center aligned container bg">
        <!--grid会把一些布局分为12列  devided加线 -->
        <div class="ui inverted divided grid bg">
            <div class="three wide column m-opacity-mini m-text-space m-text-thin m-text-lined">
                <div class="ui inverted link list bg">
                    <img src="../static/image/wo.jpg" alt="" class="ui rounded image" style="width:110px">

                </div>
            </div>
            <div class="three wide column m-opacity-mini m-text-space m-text-thin m-text-lined">
                <h4 class="ui inverted header">最新博客</h4>
                <div class="ui inverted link list ">
                    <a href="#" class="item">会飞的羊</a>
                    <a href="#" class="item">会飞的羊</a>
                    <a href="#" class="item">会飞的羊</a>
                </div>
            </div>
            <div class="three wide column m-opacity-mini m-text-space m-text-thin m-text-lined">
                <h4 class="ui inverted header">联系我吖</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">QQ:822021336</a>
                    <a href="#" class="item">邮箱：xihao.luck@qq.com</a>
                    <a href="#" class="item"></a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-opacity-mini m-text-space m-text-thin m-text-lined">最新博客</h4>
                <p class="m-opacity-mini m-text-space m-text-thin m-text-lined">
                    这是我的个人博客，用于记录我在网上收集的文章，自己的代码笔记，和优秀的文案等等。欢迎大家关注！</p>
            </div>
        </div>
        <div class="ui inverted section divider m-opacity-mini m-text-space m-text-thin m-text-lined "></div>
        <p class="m-opacity-mini m-text-space m-text-thin m-text-lined">Copyright © 2021-2022 会飞的羊 </p>
    </div>

</footer>


<!--jquery-->

<script>
    <!--点击.menu.toggle按钮加入m-mobile-hide样式-->
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide')
    });

    $("#newblog-container").load(/*[[@{/footer/newblog}]]*/"/footer/newblog");


</script>
</body>
</html>